package lol.clann.minecraft.springboot.api.bukkit.utils;

import lol.clann.minecraft.springboot.api.bukkit.model.BoundingBox;

/**
 *
 * @author pyz
 * @date 2019/6/9 2:19 PM
 */
public interface BoundingBoxUtils {
    /**
     * 将nms碰撞箱对象转换成BoundingBox对象
     * @param nmsAxisAlignedBB
     * @param <T>
     * @return
     */
    <T> BoundingBox fromNMS(T nmsAxisAlignedBB);

    /**
     * 将BoundingBox对象转换成nms碰撞箱对象
     * @param boundingBox
     * @param <T>
     * @return
     */
    <T> T toNMS(BoundingBox boundingBox);
}
